//
//  Macros_API.h
//  CYWFrame
//
//  Created by Macx on 2017/7/21.
//  Copyright © 2017年 Macx. All rights reserved.
//

#ifndef Macros_API_h
#define Macros_API_h

//
#define APIBackEndUrl                                  @"http://app.xinghelive.com"
// 正式
#define API                                  @"http://api.xinghelive.com"
// 基础API
#define APIURL                               [API stringByAppendingString:@"/index.php"]

#pragma mark ===============登录注册===============
// POST /temporary-user-sessions 游客登录，该帐号只能访问部分api
#define APITemporary                         [APIURL stringByAppendingString:@"/temporary-user-sessions"]

// POST /mobile-users 注册手机用户
#define APIRegisteredMobile                  [APIURL stringByAppendingString:@"/mobile-users"]

// POST /mobile-user-sessions 手机号登录
#define APILoginMobile                       [APIURL stringByAppendingString:@"/mobile-user-sessions"]

// POST /user-session
#define APIUserSeesion                       [APIURL stringByAppendingString:@"/user-session"]

// POST /user-session/refresh 刷新Access Token
#define APITokenRefresh                      [APIUserSeesion stringByAppendingString:@"/refresh"]

// POST /social-user-sessions 社会账号登录 openid *openid source *来源, qq QQ账号 weixin 微信账号 token * 社会账号信息中的token
#define APISocialUserSessions                      [APIURL stringByAppendingString:@"/social-user-sessions"]


#pragma mark ===============手机验证码===============
// GET /sms/mobile-code 获取手机短信
#define APIMobileCodes                       [APIURL stringByAppendingString:@"/sms/mobile-code"]


#pragma mark ===============账号管理===============
// GET /users
// ? [uid] 获取用户信息  用户ID，不传则获取本人
// GET /users/{uid}/certifications 获取认证信息 uid *用户ID
// GET /users/{anchor_id}/ranklists/followers 获取主播粉丝贡献排行榜 type 排行榜类型 day(日) week(周) all(总)，默认为day limit 限制数量 默认10，上限30 anchor_id *主播ID
#define APIUser                              [APIURL stringByAppendingString:@"/users"]
// POST /users/certifications 提交或修改用户认证 审核中及已经过审的认证不可修改 role *申请的角色，1认证用户 2专家 realname *真实姓名 id_no *身份证号 certify_pic *证明图片，有多张，以逗号隔开， hospital 就职医院，专家申请必填 position 职位，专家申请必填
#define APICertifications                              [APIUser stringByAppendingString:@"/certifications"]

// PUT /users/passwords 密码找回 dic = mobile *手机号 mobile_code *短信验证码 new_password *新密码
#define APIPassWords                              [APIUser stringByAppendingString:@"/passwords"]

// POST /users/favorites 添加关注，可批量 重复关注会自动略过 to 关注人ID，多个以逗号隔开
// DELETE /users/favorites/{touid} 取消关注 touid 取消的对象用户id
#define APIFavorites                              [APIUser stringByAppendingString:@"/favorites"]

#define APIPostFavorites                              [APIUser stringByAppendingString:@"/posts/favorites"]


// GET /users/money-logs 获取收支记 type (query) 变动类型,同时查询多种以逗号隔开，如charge,mcharge (buy_gift-送礼,recive_gift-收礼,other-其他,charge-充值,reward-悬赏 ,mcharge-余额充值,shopping-余额购物, rewardback-悬赏回收,withdraw提现,withdrawback-提现回收)
#define APIMoneyLogs                              [APIUser stringByAppendingString:@"/money-logs"]

// GET /users/payment-logs 获取支付记录
#define APIPaymentLogs                              [APIUser stringByAppendingString:@"/payment-logs"]

// GET /users/withdrawable-money 获取提现记录
#define APIWithdrawableMoney                              [APIUser stringByAppendingString:@"/withdrawable-money"]

// GET /users/score-histories 获取积分历史
#define APIScoreHistories                              [APIUser stringByAppendingString:@"/score-histories"]

// GET /users/bankcards 获取银行卡信息
// POST /users/bankcards 添加银行卡号 bank *银行名称 sub_branch *支行名称 account * 银行卡号 cardholder *持卡人姓名 mobile *开户预留手机号
// PUT /users/bankcards/{id} 修改银行卡信息 id *银行卡记录ID bank 银行名称 sub_branch 支行名称 account 银行卡号 cardholder 持卡人姓名 mobile 开户预留手机号
#define APIBankcards                              [APIUser stringByAppendingString:@"/bankcards"]

#pragma mark ===============直播管理===============
// 直播
//GET /lives 获取直播列表 ? page 页码 tag_id 分类ID per_page 每页显示数 keyword 关键词 支持直播标题
// POST /lives/{live_id}/likes 直播点赞 live_id *直播ID
#define APILives                       [APIURL stringByAppendingString:@"/lives"]

// GET /lives/tags 获取直播标签
#define APITags                        [APILives stringByAppendingString:@"/tags"]

// POST /users/lives 创建直播间 title * 直播标题，限60个字 tag_id *所属分类
// GET /users/lives/{live_id}/visitors 获取直播历史观众 live_id *直播记录ID
#define APICreateLives                 [APIUser stringByAppendingString:@"/lives"]

// GET /lives/viewers/{id} 获取单个观众信息 id *要查询的用户ID ? anchor_id *主播ID
#define APIViewers                     [APILives stringByAppendingString:@"/viewers"]

// GET /lives/gifts 获取所有礼物
#define APIGifts                       [APILives stringByAppendingString:@"/gifts"]


#pragma mark ===============商城购物===============
// 商城
#define APIMalls                       [APIURL stringByAppendingString:@"/malls"]

// GET /malls/goods 获取商品 keyword 关键词，匹配商品名 page 页码，默认为1 per_page 每页显示数，默认为10 orderby 排序字段 price（价格，默认），sold_num（销量），comments_count（评价数）direction 排序方式 desc（降序，默认）asc（升序）
// GET /malls/goods/{id} 获取商品详情 id *商品ID
// GET /malls/goods/{id}/comments 获取商品的评论列表 id * 商品ID page 页码 per_page 每页显示数
// POST /malls/goods/{id}/comments 发表商品的评论 id *商品ID body * 评论内容 pics 附加图片，多张以逗号隔开，最多3张
#define APIMallsGoods                  [APIMalls stringByAppendingString:@"/goods"]

// GET /malls/goods-cates 获取所有商品分类
#define APIMallsAllGoods              [APIMalls stringByAppendingString:@"/all-goods"]

// GET /malls/goods-cates 获取所有商品分类
#define APIMallsGoodsCates             [APIMalls stringByAppendingString:@"/goods-cates"]

// GET /malls/carts 获取购物车产品
// PUT /malls/carts 放入or移出购物车商品 goods_id *商品ID quantity 数量,默认为1 act 动作 increment添加（默认）， reduce减少
#define APIMallsCarts             [APIMalls stringByAppendingString:@"/carts"]


// POST /malls/orders 下单 items *订单明细json字符串，如[{"goods_id":"1","quantity":"2"},{"goods_id":"4","quantity":"10"}] goods_id 商品ID quantity 数量 address_id 收货地址 is_cart 是否来自购物车，如果是系统将移除相应商品 1是 0否（默认）
// GET /malls/orders 搜索订单 keyword 关键词，匹配商品名或订单号(order_no) status 订单状态 unpaid(未支付),paid(已支付),delivered(已发货),received(已收货),cancel(取消) page 页码，默认为1 per_page 每页显示数，默认为10 orderby 排序字段 create_time（下单时间，默认） direction 排序方式 desc（降序，默认）asc（升序）
// DELETE /malls/orders/{id} 取消订单 只能取消未付款的订单 id *订单ID
// PUT /malls/orders/{id}/hidden 隐藏订单（删除订单）隐藏后将不能再看到该订单 id *订单ID
// GET /malls/orders/{id}/expresses 获取订单的物流信息 发货后才能使用该接口 id *订单ID
#define APIMallsOrders                 [APIMalls stringByAppendingString:@"/orders"]

// PUT /malls/orders/addresses 修改收货地址 只能在在付款前修改 order_ids *订单ID，多个以逗号隔开 address_id *新收货地址ID
#define APIMallsOrdersAddr          [APIMallsOrders stringByAppendingString:@"/addresses"]

// POST /malls/orders/payment 确认付款 channel *支付方式 ali_web(支付宝网页) wx_pub(微信公众号) ali_app(支付宝APP) wx_app（微信APP） ali_wap(支付宝手机网页) order_ids *订单号，多个以逗号隔开
#define APIMallsPayment                 [APIMallsOrders stringByAppendingString:@"/payment"]

// GET /users/receive-addresses 获取收货地址
// POST /users/receive-addresses 添加收货地址，每人最多10个收货地址 province *省份 city *城市 district *地区 detail *详细地址 name *收货人姓名 mobile *收货人电话 is_default 是否设为默认 1是 0否（默认）
// PUT /users/receive-addresses/{id} 修改地址 id *地址Id province 省份 city 城市 district 地区 detail 详细地址 name mobile 收货人电话 is_default 是否设为默认 1是 0否（默认）
// DELETE /users/receive-addresses/{id} 删除收货地址 id *地址Id
#define APIReceiveAddresses            [APIUser stringByAppendingString:@"/receive-addresses"]

#pragma mark ===============排行榜===============
#define APIRank                       [APILives stringByAppendingString:@"/ranklists"]

// GET /lives/ranklists/stars 获取直播星光值排行榜 type 排行榜类型 day(日) week(周) all(总)，默认为day limit 限制数量 默认10
#define APIRankStar                       [APIRank stringByAppendingString:@"/stars"]

// GET /lives/ranklists/contributions 获取直播贡献值排行榜 type 排行榜类型 day(日) week(周) all(总)，默认为day limit 限制数量 默认10
#define APIRankContributions                       [APIRank stringByAppendingString:@"/contributions"]

// GET /lives/ranklists/followers 获取粉丝排行榜 limit 限制数量 默认10
#define APIRankFollowers                       [APIRank stringByAppendingString:@"/followers"]

#pragma mark ===============资源管理===============

#pragma mark ===============用户管理===============
// User
// PUT /users 修改用户信息 nickname 用户昵称 intro 用户简介 face 头像图片地址
// PUT /users/{uid}/lives 进入直播间 只有主播进入都会有推流地址 uid * 主播ID
// GET /users/{id}/lives/admins 获取该主播的管理员 id *主播ID
// POST /users/{id}/lives/admins 邀请用户成为自己的管理员 id *主播ID to *被邀人ID
// DELETE /users/{anchor_id}/lives/admins/{user_id} 删除主播管理员 anchor_id *主播ID user_id *管理员ID
// POST /users/{uid}/lives/gifts 发送礼物 uid *收礼物者ID gift_id *礼物ID nums *数量
// GET /users/{uid}/favorites 获取关注的人 uid *关注人ID
// GET /users/{uid}/fans 获取粉丝 uid *被关注人I
#define APIUser                              [APIURL stringByAppendingString:@"/users"]

// GET /users/infos 查询用户信息 ? ids 用户ID,多个以逗号隔开 keyword 关键字，目前支持昵称 page 页码 per_page 每页显示数
#define APIUserInfos                              [APIUser stringByAppendingString:@"/infos"]

// GET /users/blacklists 获取黑名单 page 页码,默认值1 per_page 每页显示数，默认值10
// POST /users/blacklists to_user_id *要屏蔽的用户ID
// DELETE /users/blacklists/{touid} 取消拉黑 touid *用户ID
#define APIUserBlacklists                              [APIUser stringByAppendingString:@"/blacklists"]


#pragma mark ===============认证===============

#pragma mark ===============动态===============
// GET /posts 获取动态 ？keyword = 匹配动态内容
// POST /posts 发布动态 dic = details 内容,pic 图片地址，如果有多张，以逗号隔开,video 小视频地址，多个以逗号隔开
// GET /posts/{id} 获取动态详情
// POST /posts/{id}/praises 动态点赞 不能重复点赞 id 动态ID
// GET /posts/{id}/replies 获取评论 ? page 页码 per_page
// POST /posts/{id}/replies 发表评论 dic = id 动态ID contents 回复内容 pid 父级评论ID，回复评论时必须
// POST /posts/{id}/reawrds 申请打赏动态 id *动态ID amount *打赏金额，单位分，最少100分 channel *支付方式 ali_web(支付宝网页) wx_pub(微信公众号) ali_app(支付宝APP) wx_app（微信APP） ali_wap(支付宝手机网页)
#define APIPosts                              [APIURL stringByAppendingString:@"/posts"]

// POST /posts/replies/{reply_id}/praises 给评论点赞
// DELETE /posts/replies/{reply_id}/praises 取消评论点赞
// GET /posts/replies/{id}/replies 获取二级评论
// DELETE /posts/replies/{id} 删除评论 id *评论ID
#define APIReplies                              [APIPosts stringByAppendingString:@"/replies"]


#pragma mark ================资讯==============
// GET /articles 获取（查询）资讯列表 keyword 关键词，匹配商品名 page 页码，默认为1 per_page 每页显示数，默认为10 cate_id 二级分类ID，暂不支持一级分类搜索 orderby 排序字段 create_time（发布时间，默认），views（阅读量），zan（点赞数） direction 排序方式 desc（降序，默认）asc（升序）
// GET /articles/{id} 获取单条资讯 id *资讯ID
// GET /articles/{id}/comments 获取资讯评论 Parameters page 页码，默认为1 per_page 每页显示数，默认为10 id *资讯ID
// POST /articles/{id}/comments 发表评论 content * 内容 pid 上级评论ID(即回复的评论ID,存在即为二级评论)
// POST /articles/{id}/praises 资讯点赞 id *文章ID
// DELETE /articles/{id}/praises 取消点赞 id *文章ID
#define APIArticles            [APIURL stringByAppendingString:@"/articles"]

// POST /users/articles/favorites 添加资讯收藏 article_id *资讯Id
// GET /users/articles/favorites 获取收藏的资讯 page 页码，默认为1 per_page 每页显示数，默认为10
// DELETE /users/articles/favorites/{article_id} 从收藏中删除资讯 article_id * 资讯ID
#define APIArticlesFavorites            [APIUser stringByAppendingString:@"/articles/favorites"]

// GET /articles-cates 获取资讯分类 type 资讯类型 text-图文(默认) video-视频
#define APIArticlescCates            [APIURL stringByAppendingString:@"/articles-cates"]

// POST /articles/comments/{id}/praises 评论点赞 id *评论ID
// DELETE /articles/comments/{id}/praises 取消点赞 id *评论ID
#define APIArticlesComments            [APIArticles stringByAppendingString:@"/comments"]


#pragma mark ===============问答===============
//GET /questions 获取问题列表 user_id 用户ID keyword 关键词，匹配标题 page 页码，默认为1 per_page 每页显示数，默认为10 orderby 排序字段 create_time-提问时间（默认），views_count-阅读量，answers_count-回答数 direction 排序方式 desc-降序（默认）asc-升序
// POST /questions 添加问题 title *标题 body *问题描述 reward 悬赏金，单位分 pics 附加图片，多张以逗号隔开 invitees 邀请的用户ID，多个以逗号隔开
// GET /questions/{question_id} 获取问题详情 question_id *问题ID
// GET /questions/{question_id}/answers 获取问题的答案 question_id *问题ID page 页码,默认值1 per_page 每页显示数，默认值10
// POST /questions/{question_id}/answers 添加回答 body *答案内容 pics 图片，多张以逗号隔开，最多3张 question_id *问题ID
#define APIQuestions                              [APIURL stringByAppendingString:@"/questions"]

// POST /questions/answers/{answer_id}/comments 提交答案评论 answer_id *答案ID body * 评论内容
// GET /questions/answers/{answer_id}/comments 获取答案评论列表 answer_id *答案ID page 页码,默认值1 per_page 每页显示数，默认值10
// POST /questions/answers/{answer_id}/likes 答案点赞 answer_id *答案ID
// DELETE /questions/answers/{answer_id}/likes 取消答案点赞 answer_id *答案ID
// PUT /questions/answers/{answer_id}/adoptions 采纳答案 采纳答案后会自动关闭并将悬赏金转到该回答者名下 answer_id *答案ID
#define APIQuestionsAnswers               [APIQuestions stringByAppendingString:@"/answers"]

#pragma mark ===============广告===============
// GET /ads 获取广告 ？board = 板块名称 app_index（app首页） app_bg （app登录背景） app_live （APP直播） app_mall （APP商城）app_article（app资讯）app_video（app视频）
#define APIAds                              [APIURL stringByAppendingString:@"/ads"]


#pragma mark ===============上传资源===============
// 上传资源
#define APIUploader                         [APIURL stringByAppendingString:@"/uploader"]

// POST /uploader/images 上传图片 图片不能大于10M image 要上传的图片 type 图片类型，默认为images
#define APIImages                              [APIUploader stringByAppendingString:@"/images"]

// POST /uploader/microvideos 上传小视频 注：目前仅支持mp4 video 视频文件
#define APIMicrovideos                              [APIUploader stringByAppendingString:@"/microvideos"]

#pragma mark ===============站内信===============
// GET /messages 获取站内信列表
// GET /messages/{id} 获取站内信列表
#define APIMessages                              [APIURL stringByAppendingString:@"/messages"]

// GET /users/notifications 获取系统消息 page 页码,默认值1 per_page 每页显示数，默认值10
#define APINotifications                              [APIUser stringByAppendingString:@"/notifications"]

// GET /protocols 获取平台协议
#define APIProtocols                              [APIURL stringByAppendingString:@"/protocols"]

#pragma mar ================其他================
// GET /settings/moneyrates 获取虚拟币比率
#define APIMoneyrates            [APIURL stringByAppendingString:@"/settings/moneyrates"]

// GET /specialists 获取在线专家
#define APISpecialists            [APIURL stringByAppendingString:@"/specialists"]

// PUT /users/resetpasswords 修改密码 old_password * 旧密码 new_password *新密码
#define APIResetpasswords            [APIUser stringByAppendingString:@"/resetpasswords"]

// PUT /users/mobiles 修改绑定手机 mobile *新手机号 mobile_code * 手机验证码
#define APIMobiles            [APIUser stringByAppendingString:@"/mobiles"]

// GET /users/signs 获取签到表
// POST /users/signs 签到
#define APISigns              [APIUser stringByAppendingString:@"/signs"]

// POST /payment/charge 发起充值秀币或余额请求 type *充值类型 charge-秀币（默认） mcharege-余额 channel * 支付方式 ali_web(支付宝网页) wx_pub(微信公众号) ali_app(支付宝APP) wx_app（微信APP） ali_wap(支付宝手机网页) amount *金额，单位分
#define APIPaymentCharge              [APIURL stringByAppendingString:@"//payment/charge"]

// PUT /users/withdrawable-money 申请提现 amount *提现金额，默认100元
#define APIWithdrawable              [APIUser stringByAppendingString:@"/withdrawable-money"]

// GET /users/clinichistories 获取病历列表
#define APIClinichistories              [APIUser stringByAppendingString:@"/clinichistories"]

// GET /unread-tips 获取未读信息数量
#define APIUnreadTips              [APIURL stringByAppendingString:@"/unread-tips"]

#define APIRecruit                       [APIURL stringByAppendingString:@"/recruit"]
//后台接口分的有点乱，该接口暂时仅用来获取首页中间卡片的三个分类数据（用法：获取完数据后按需拿出它的goods,live, recruit）
#define APIRecommendIndex         [APIURL stringByAppendingString:@"/recruit/recommend-index"]
//首页推荐商品接口
#define APIRecommendGoods         [APIURL stringByAppendingString:@"/malls/recommend-goods"]

#define APIRecruitIndex         [APIRecruit stringByAppendingString:@"/index"]

#define APIIndexTagList         [APIURL stringByAppendingString:@"/recruit/tag-list"]

#define APIPersonal        [APIUser stringByAppendingString:@"/personal"]

#define APIQueryCert        [APIUser stringByAppendingString:@"/query-certifications"]

#define APIJobDetail         [APIURL stringByAppendingString:@"/company/query-position"]

// 收藏列表 /users/collected goods_id
#define APIUsersCollected               [APIURL stringByAppendingString:@"/malls/getcollect"]

#define APIMallCollect               [APIMalls stringByAppendingString:@"/collect"]
// DELETE 删除收藏/malls/uncollect goods_id
#define APIMallUncollect               [APIMalls stringByAppendingString:@"/uncollect"]
#define APIMallLiveGoods              [APIMalls stringByAppendingString:@"/live-goods"]

#define APIRecruitCategoryList         [APIRecruit stringByAppendingString:@"/category-list"]

#define APIPersonalAddResume         [APIURL stringByAppendingString:@"/personal/add-resume"]

#define APIResumeManage         [APIURL stringByAppendingString:@"/personal/resume-manage"]

#define APIGetResume         [APIURL stringByAppendingString:@"/personal/get-resume"]

#define APIMyEcBuy              [APIMalls stringByAppendingString:@"/my-ecbuy"]

#define APIDeleteResume         [APIURL stringByAppendingString:@"/personal/del-resume"]

#define APISetDefaultResume         [APIURL stringByAppendingString:@"/personal/set-default"]

#define APIAddWorkExp         [APIURL stringByAppendingString:@"/personal/add-resume-work"]

#define APIAddEduExp         [APIURL stringByAppendingString:@"/personal/add-resume-educational"]

#define APIUpdateWorkExp         [APIURL stringByAppendingString:@"/personal/update-work"]

#define APIUpdateEduExp         [APIURL stringByAppendingString:@"/personal/update-educational"]

//删除教育经历或工作经历
#define APIDeleteExpInfo        [APIURL stringByAppendingString:@"/personal/del-resume-exper"]

#define APISendResume         [APIURL stringByAppendingString:@"/personal/send-resume"]

#define APIAddPosition         [APIURL stringByAppendingString:@"/company/add-position"]

#define APIQueryCompany         [APIURL stringByAppendingString:@"/company/query-company"]

#define APIUpdateCompany         [APIURL stringByAppendingString:@"/company/update-company"]

#define APIMakeInvitation         [APIURL stringByAppendingString:@"/company/invitation"]

#define APIPositionList         [APIURL stringByAppendingString:@"/company/position-list"]

#define APISetDefaultJob         [APIURL stringByAppendingString:@"/company/set-default"]

#define APIPostJobOperation         [APIURL stringByAppendingString:@"/company/operation"]

#define APIDeletePosition         [APIURL stringByAppendingString:@"/company/del-position"]

#define APIUpdatePosition         [APIURL stringByAppendingString:@"/company/update-position"]

#define APIDeliveryBoxPerson        [APIURL stringByAppendingString:@"/personal/delivery-manage"]

#define APIDeliveryBoxCompany        [APIURL stringByAppendingString:@"/company/delivery-manage"]

#define APICancelDelivery        [APIURL stringByAppendingString:@"/company/cancel-delivery"]

#define APIConfirmInvitation        [APIURL stringByAppendingString:@"/personal/confirmed-interview"]

#define APIPersonInterviewManage        [APIURL stringByAppendingString:@"/personal/interview-manage"]

#define APICompanyInterviewManage        [APIURL stringByAppendingString:@"/company/interview-manage"]

#define APICompanyChooseDate        [APIURL stringByAppendingString:@"/company/send-interview"]

#define APICompanySetTime        [APIURL stringByAppendingString:@"/company/set-time"]

#define APIPersonSetRemark        [APIURL stringByAppendingString:@"/personal/set-remark"]

#define APIPersonConfirmDate        [APIURL stringByAppendingString:@"/personal/confirmed"]

#define APIStartInterview        [APIURL stringByAppendingString:@"/lives/startInterview"]

#define APIEndInterview        [APIURL stringByAppendingString:@"/company/end-interview"]

#define APIEmploy        [APIURL stringByAppendingString:@"/company/employ"]

#define APINotEmploy        [APIURL stringByAppendingString:@"/company/cancel-interview"]

#define APIPersonAgreeEmployOrNot        [APIURL stringByAppendingString:@"/personal/switch-employ"]

#define APIUpdateResume        [APIURL stringByAppendingString:@"/personal/update-resume"]

#define APIFindShop         [APIURL stringByAppendingString:@"/malls/findShop"]

#define APIShopHome         [APIURL stringByAppendingString:@"/malls/shop"]

#define APIDepositBillList         [APIUser stringByAppendingString:@"/bill-list"]

#define APICollectJobOrResume         [APIURL stringByAppendingString:@"/recruit/collection"]

#define APICancelCollectJobOrResume         [APIURL stringByAppendingString:@"/recruit/cancel-collection"]

#define APIJobCollectionList         [APIURL stringByAppendingString:@"/recruit/collection-list"]

#define APIResumeCollectionList         [APIURL stringByAppendingString:@"/company/collection-list"]

#define APIRecommendJobCategory         [APIURL stringByAppendingString:@"/recruit/get-recommend"]

//新商城首页接口
#define APIMallsIndex         [APIURL stringByAppendingString:@"/malls/index"]

#define APIAfterSale        [APIUser stringByAppendingString:@"/after-sale"]

#define APIIncomeDetails         [APIURL stringByAppendingString:@"/malls/income-details"]

#define APIGetShopInfo         [APIURL stringByAppendingString:@"/malls/getShopInfo"]

#define APIUpdateShopInfo         [APIURL stringByAppendingString:@"/malls/updateShopInfo"]

//查询主播状态(比如进入直播间前先看看他是否已经关闭直播)
#define APICheckLiveStatus        [APIURL stringByAppendingString:@"/lives/live-status"]

#define APIRefundOrder         [APIURL stringByAppendingString:@"/malls/refund-order"]

#endif /* Macros_API_h */
